package com.ruoyi.sales.mapper;

import com.ruoyi.common.core.domain.entity.ZcProcess;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ZcProcessMapper {
    List<ZcProcess> selectProcessList(ZcProcess process);

    ZcProcess selectProcessById(Long processId);

    ZcProcess checkProcessNameUnique(@Param("processName")String processName,@Param("parentId") Long parentId);

    int insertProcess(ZcProcess process);

    int selectNormalChildrenProcessById(Long processId);

    List<ZcProcess> selectChildrenProcessById(Long processId);

    int updateProcessChildren(@Param("processes") List<ZcProcess> processes);

    int updateProcess(ZcProcess process);

    void updateProcessStatusNormal(Long[] stockIds);

    int hasChildByProcessId(Long processId);

    int deleteProcessById(Long processId);

    int updateProcessStatus(ZcProcess process);

    int updateCode(ZcProcess process);
}
